
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>Advanced Search</title>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />

<meta http-equiv="Content-Language" content="en-us" />

<script src="../../../public/javascripts/jquery-1.2.1.pack.js"
	type="text/javascript"></script>
	<script src="../../../public/javascripts/advancedSearchValidation.js"
	type="text/javascript"></script>
<script src="../../../public/javascripts/jquery-easing.1.2.pack.js"
	type="text/javascript"></script>
<script
	src="../../../public/javascripts/jquery-easing-compatibility.1.2.pack.js"
	type="text/javascript"></script>
<script src="../../../public/javascripts/coda-slider.1.1.1.pack.js"
	type="text/javascript"></script>
<script type="text/javascript" language="javascript" src="../../../public/javascripts/thickbox.js"></script>
    <link rel="stylesheet" href="../../../public/stylesheets/thickbox.css" type="text/css" media="screen" />
<link rel="stylesheet"
	href="../../../public/stylesheets/slidingTabs.css" TYPE="text/css"
	MEDIA="screen"></link>


<!-- Initialize each slider on the page. Each slider must have a unique id -->
<script type="text/javascript">
	jQuery(window).bind("load", function() {
		jQuery("div#slider1").codaSlider()
		// jQuery("div#slider2").codaSlider()
		// etc, etc. Beware of cross-linking difficulties if using multiple sliders on one page.
	});
	var currrent = "";
	$(function() {
		$.getJSON("@{Application.getId()}", function(data) {
			current = data.res;
		});
		$('#devCanDivInOrg').hide();
		$('#createEntityDiv').hide();
		$('#createOrgDiv').hide();
		$('#createSubEntityDiv').hide();
		$('#deleteEntityDiv').hide();
		$('#orgRequestDiv').hide();
		$('#devRequestDiv').hide();
		$('#devCanDivInEnt').hide();
		javascript: whoIsLoggedIn();
	});
	function whoIsLoggedIn() {
		var currentU = "";
		$
				.getJSON(
						"@{Application.getCurrentUser()}",
						function(data) {
							document.getElementById("whoIsLoggedIn").innerHTML = "<label style=\"background: #333 url('../../public/images/light.png') center center repeat-x; color: white; margin: 5px; padding: 5px 15px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: bold; float: right;\">Welcome "
									+ data.result + "!</label>";
						});

	}
	function searchIdea() {

		var title = document.getElementById('titleIdea').value;
		var description = document.getElementById('descriptionIdea').value;
		var organization = document.getElementById('organizationIdea').value;
		var creator = document.getElementById('creatorIdea').value;
		var numberOfViews = document.getElementById('numberOfViewsIdea').value;
		var status = document.getElementById('statusIdea').options[document
				.getElementById('statusIdea').selectedIndex].value;
		var tags = document.getElementById('tagsIdea').value;
		var day = document.getElementById('dayBoxIdea').options[document
				.getElementById('dayBoxIdea').selectedIndex].value;
		var month = document.getElementById('monthBoxIdea').options[document
				.getElementById('monthBoxIdea').selectedIndex].value;
		var year = document.getElementById('yearBoxIdea').options[document
				.getElementById('yearBoxIdea').selectedIndex].value;
		var useDate = document.getElementById('whichDateIdea').options[document
				.getElementById('whichDateIdea').selectedIndex].value;
		var sort = document.getElementById('sortIdea').options[document
				.getElementById('sortIdea').selectedIndex].value;
		
		if(title == "" && description =="" && organization == "" && creator =="" && numberOfViews == "" && useDate=="Exclude Date" && tags ==""){
			alert("Please enter search keyword(s) or use the search by date feature");
			return;
		}
		if(!validateCanBeEmptyIdeaTitle() || !validateCanBeEmptyIdeaDescription() || !validateCanBeEmptyIdeaCreator() || 
			!validateCanBeEmptyIdeaOrganization() || !validateCanBeEmptyIdeaTag() || !validateIsNumberIdeaViews()){
			return;
		}
	
		
		document.getElementById("exportDiv").style.visibility = "hidden";
		document.getElementById("exportDiv").innerHTML = "";
		document.getElementById("exportDiv").innerHTML += "<input name=\"export\" id=\"export\" value=\"\" type=\"text\" />";
		
		$
				.getJSON(
						'@{AdvancedSearchController.advancedSearchIdea()}',
						{
							'title' : title,
							'description' : description,
							'creator' : creator,
							'numberOfViews' : numberOfViews,
							'status' : status,
							'tags' : tags,
							'day' : day,
							'month' : month,
							'year' : year,
							'useDate' : useDate,
							'sort' : sort,
							'organization' : organization
						},
						function(data) {
							var resultsTitles = {};
							var resultsIds = {};
							var ideas = "";
							var ideasCSV ="";
							if (data.titles == "No Results Found") {
								alert("No Matching Results Found" + "\n" + "Please Note That Search Results Are Case Sensitive");
								return;
							} else {
								resultsTitles = data.titles.split("&");
								resultsIds = data.ids.split("&");

								for ( var i = 1; i < resultsTitles.length; i = i + 1) {
									ideas += "<p><a href='/TopicIdeaController/checkAuthorizationToViewIdea?ideaId="
											+ resultsIds[i]
											+ "'>"
											+ resultsTitles[i] + "</a></p>";
									ideasCSV+= resultsTitles[i] + ",";
								}
								
								document.getElementById("resultsDiv").style.visibility = "hidden";
								document.getElementById("resultsDiv").innerHTML = "";
								document.getElementById("resultsDiv").innerHTML += ideas;
								document.getElementById("export").value = "";
								document.getElementById("export").value += ideasCSV;
								showThickBox();
							}

						});

	}
	function exportResults(){
		var resultsToBeExported = document.getElementById("export").value;
		$
		.getJSON(
				'@{AdvancedSearchController.exportByMail()}',
				{
					'bodyOfMail' : resultsToBeExported,
				},
				function(data) {
				alert(data.reply);

				});

		
	}
	function searchTopic() {
		var title = document.getElementById('title').value;
		var description = document.getElementById('description').value;
		var creator = document.getElementById('creator').value;
		var organization = document.getElementById('organizationTopic').value;
		var numberOfViews = document.getElementById('numberOfViews').value;
		var status = document.getElementById('status').options[document
				.getElementById('status').selectedIndex].value;
		var tags = document.getElementById('tags').value;
		var day = document.getElementById('dayBox').options[document
				.getElementById('dayBox').selectedIndex].value;
		var month = document.getElementById('monthBox').options[document
				.getElementById('monthBox').selectedIndex].value;
		var year = document.getElementById('yearBox').options[document
				.getElementById('yearBox').selectedIndex].value;
		var useDate = document.getElementById('whichDate').options[document
				.getElementById('whichDate').selectedIndex].value;
		var sort = document.getElementById('sortTopic').options[document
		        .getElementById('sortTopic').selectedIndex].value;
		
		if(title == "" && description =="" && organization == "" && creator =="" && numberOfViews == "" && useDate=="Exclude Date" && tags ==""){
			alert("Please enter search keyword(s) or use the search by date feature");
			return;
		}
		if(!validateCanBeEmptyTopicTitle() || !validateCanBeEmptyTopicDescription() || !validateCanBeEmptyTopicCreator() || 
				!validateCanBeEmptyTopicOrganization() || !validateCanBeEmptyTopicTag() || !validateIsNumberTopicViews()){
				return;
			}
		document.getElementById("exportDiv").style.visibility = "hidden";
		document.getElementById("exportDiv").innerHTML = "";
		document.getElementById("exportDiv").innerHTML += "<input name=\"export\" id=\"export\" value=\"\" type=\"text\" />";
		$
				.getJSON(
						'@{AdvancedSearchController.advancedSearchTopic()}',
						{
							'title' : title,
							'description' : description,
							'creator' : creator,
							'numberOfViews' : numberOfViews,
							'status' : status,
							'tags' : tags,
							'day' : day,
							'month' : month,
							'year' : year,
							'useDate' : useDate,
							'sort':sort,
							'organization' : organization
						},
						function(data) {
							var resultsTitles = {};
							var resultsIds = {};
							var topics = "";
							var topicsCSV = "";
							if (data.titles == "No Results Found") {
								alert("No Matching Results Found" + "\n" + "Please Note That Search Results Are Case Sensitive");
								return;
							} else {
								resultsTitles = data.titles.split("&");
								resultsIds = data.ids.split("&");

								for ( var i = 1; i < resultsTitles.length; i = i + 1) {
									topics += "<p><a href='/TopicIdeaController/checkAuthorizationToViewTopic?topicId="
											+ resultsIds[i]
											+ "'>"
											+ resultsTitles[i] + "</a></p>";
									topicsCSV += resultsTitles[i] + ",";
								}
								document.getElementById("resultsDiv").style.visibility = "hidden";
								document.getElementById("resultsDiv").innerHTML = "";
								document.getElementById("resultsDiv").innerHTML += topics;
								document.getElementById("export").value = "";
								document.getElementById("export").value += topicsCSV;
								showThickBox();
							}

						});
	}

	function searchTag() {

		var name = document.getElementById('nameTag').value;
		var relatedItems = document.getElementById('relatedTag').value;
		var day = document.getElementById('dayBoxTag').options[document
				.getElementById('dayBoxTag').selectedIndex].value;
		var month = document.getElementById('monthBoxTag').options[document
				.getElementById('monthBoxTag').selectedIndex].value;
		var year = document.getElementById('yearBoxTag').options[document
				.getElementById('yearBoxTag').selectedIndex].value;
		var useDate = document.getElementById('whichDateTag').options[document
				.getElementById('whichDateTag').selectedIndex].value;
		var sort = document.getElementById('sortTag').options[document
		        .getElementById('sortTag').selectedIndex].value;
		
		if(name == "" && relatedItems =="" && useDate=="Exclude Date"){
			alert("Please enter search keyword(s) or use the search by date feature");
			return;
		}
		if(!validateCanBeEmptyTagName() || !validateIsNumberTagRelatedItems()){
				return;
			}
		document.getElementById("exportDiv").style.visibility = "hidden";
		document.getElementById("exportDiv").innerHTML = "";
		document.getElementById("exportDiv").innerHTML += "<input name=\"export\" id=\"export\" value=\"\" type=\"text\" />";

		$
				.getJSON(
						'@{AdvancedSearchController.advancedSearchTag()}',
						{
							'name' : name,
							'relatedItems' : relatedItems,
							'day' : day,
							'month' : month,
							'year' : year,
							'useDate' : useDate,
							'sort' : sort
						},
						function(data) {
							var resultsTitles = {};
							var resultsIds = {};
							var tags = "";
							var tagsCSV = "";
							if (data.titles == "No Results Found") {
								alert("No Matching Results Found" + "\n" + "Please Note That Search Results Are Case Sensitive");
								return;
							} else {
								resultsTitles = data.titles.split("&");
								resultsIds = data.ids.split("&");

								for ( var i = 1; i < resultsTitles.length; i = i + 1) {
									tags += "<p><a href='/TagPage/TagView?name="
											+ resultsTitles[i] + "'>"
											+ resultsTitles[i] + "</a></p>";
									tagsCSV += resultsTitles[i] + ",";
								}

								document.getElementById("resultsDiv").style.visibility = "hidden";
								document.getElementById("resultsDiv").innerHTML = "";
								document.getElementById("resultsDiv").innerHTML += tags;
								document.getElementById("export").value = "";
								document.getElementById("export").value += tagsCSV;
								showThickBox();
							}

						});

	}
	function searchEntity() {
		var name = document.getElementById('nameEntity').value;
		var organization = document.getElementById('organizationOfEntity').value;
		var numberOfViews = document.getElementById('numberOfViewsEntity').value;
		var numberOfMembers = document.getElementById('numberOfMembersEntity').value;
		var numberOfTopics = document.getElementById('numberOfTopicsEntity').value;
		var day = document.getElementById('dayBoxEntity').options[document
				.getElementById('dayBoxEntity').selectedIndex].value;
		var month = document.getElementById('monthBoxEntity').options[document
				.getElementById('monthBoxEntity').selectedIndex].value;
		var year = document.getElementById('yearBoxEntity').options[document
				.getElementById('yearBoxEntity').selectedIndex].value;
		var useDate = document.getElementById('whichDateEntity').options[document
				.getElementById('whichDateEntity').selectedIndex].value;
		var sort = document.getElementById('sortEntity').options[document
		        .getElementById('sortEntity').selectedIndex].value;
		if(name == "" && organization == "" && numberOfViews == "" && numberOfMembers == "" && numberOfTopics == "" && useDate=="Exclude Date"){
			alert("Please enter search keyword(s) or use the search by date feature");
			return;
		}
		
		if(!validateCanBeEmptyEntityName() || !validateCanBeEmptyEntityOrganization() || !validateIsNumberEntityViews() || 
				!validateIsNumberEntityMembers() || !validateIsNumberEntityTopics()){
				return;
			}
		document.getElementById("exportDiv").style.visibility = "hidden";
		document.getElementById("exportDiv").innerHTML = "";
		document.getElementById("exportDiv").innerHTML += "<input name=\"export\" id=\"export\" value=\"\" type=\"text\" />";
		$
				.getJSON(
						'@{AdvancedSearchController.advancedSearchEntity()}',
						{
							'name' : name,
							'day' : day,
							'month' : month,
							'year' : year,
							'useDate' : useDate,
							'numberOfViews' : numberOfViews,
							'organization' : organization,
							'numberOfMembers' : numberOfMembers,
							'numberOfTopics' : numberOfTopics,
							'sort' : sort
						},
						function(data) {
							var resultsTitles = {};
							var resultsIds = {};
							var entities = "";
							var entitiesCSV = "";
							if (data.titles == "No Results Found") {
								alert("No Matching Results Found" + "\n" + "Please Note That Search Results Are Case Sensitive");
								return;
							} else {
								resultsTitles = data.titles.split("&");
								resultsIds = data.ids.split("&");

								for ( var i = 1; i < resultsTitles.length; i = i + 1) {
									
									entities += "<p><a href='/Application/EntityView?entityId="
											+ resultsIds[i]
											+ "'>"
											+ resultsTitles[i] 
											+ "</a> --------> <a href='#' onclick='sendEntRequest("+ resultsIds[i] + ")'>Join</a></p>";
									entitiesCSV += resultsTitles[i] + ",";
								}
								document.getElementById("resultsDiv").style.visibility = "hidden";
								document.getElementById("resultsDiv").innerHTML = "";
								document.getElementById("resultsDiv").innerHTML += entities;
								document.getElementById("export").value = "";
								document.getElementById("export").value += entitiesCSV;
								showThickBox();
							}

						});
	}

	function searchOrganization() {
		var name = document.getElementById('nameOrganization').value;
		var numberOfViews = document
				.getElementById('numberOfViewsOrganization').value;
		var numberOfMembers = document
				.getElementById('numberOfMembersOrganization').value;
		var numberOfTopics = document
				.getElementById('numberOfTopicsOrganization').value;
		var day = document.getElementById('dayBoxOrganization').options[document
				.getElementById('dayBoxOrganization').selectedIndex].value;
		var month = document.getElementById('monthBoxOrganization').options[document
				.getElementById('monthBoxOrganization').selectedIndex].value;
		var year = document.getElementById('yearBoxOrganization').options[document
				.getElementById('yearBoxOrganization').selectedIndex].value;
		var useDate = document.getElementById('whichDateOrganization').options[document
				.getElementById('whichDateOrganization').selectedIndex].value;
		var sort = document.getElementById('sortOrganization').options[document
		        .getElementById('sortOrganization').selectedIndex].value;
		var isInteger = /^\d*$/;
		
		if(name == "" && numberOfViews == "" && numberOfMembers == "" && numberOfTopics == "" && useDate=="Exclude Date"){
			alert("Please enter search keyword(s) or use the search by date feature");
			return;
		}
		if(!validateCanBeEmptyOrganizationName() || !validateIsNumberOrganizationViews() || !validateIsNumberOrganizationMembers() || 
				!validateIsNumberOrganizationTopics()){
				return;
			}
		document.getElementById("exportDiv").style.visibility = "hidden";
		document.getElementById("exportDiv").innerHTML = "";
		document.getElementById("exportDiv").innerHTML += "<input name=\"export\" id=\"export\" value=\"\" type=\"text\" />";
		$
				.getJSON(
						'@{AdvancedSearchController.advancedSearchOrganization()}',
						{
							'name' : name,
							'day' : day,
							'month' : month,
							'year' : year,
							'useDate' : useDate,
							'numberOfViews' : numberOfViews,
							'numberOfMembers' : numberOfMembers,
							'numberOfTopics' : numberOfTopics,
							'sort' : sort
						},
						function(data) {
							var resultsTitles = {};
							var resultsIds = {};
							var organizations = "";
							var organizationsCSV = "";
							if (data.titles == "No Results Found") {
								alert("No Matching Results Found" + "\n" + "Please Note That Search Results Are Case Sensitive");
								return;
							} else {
								resultsTitles = data.titles.split("&");
								resultsIds = data.ids.split("&");
								
								shorgTitles = resultsIds;

								for ( var i = 1; i < resultsTitles.length; i = i + 1) {
									var qs = "'" + resultsIds[i] + "'";
									organizations += "<p><a href='/Application/OrganizationView?name="
											+ resultsTitles[i]
											+ "'>"
											+ resultsTitles[i] 
											+ "</a> --------> <a href='#' onclick='sendOrgRequest("+i+")'>Join</a></p>";
									organizationsCSV += resultsTitles[i] + ",";
								}
								
								document.getElementById("resultsDiv").style.visibility = "hidden";
								document.getElementById("resultsDiv").innerHTML = "";
								document.getElementById("resultsDiv").innerHTML += organizations;
								document.getElementById("export").value = "";
								document.getElementById("export").value += organizationsCSV;
								showThickBox();
							}

						});
	}

	function searchMember() {
		var fullName = document.getElementById('fullNameMember').value;
		var userName = document.getElementById('userNameMember').value;
		var eMail = document.getElementById('eMail').value;
		var numberOfIdeas = document.getElementById('numberOfIdeasMember').value;
		var numberOfComments = document
				.getElementById('numberOfCommentsMember').value;
		var day = document.getElementById('dayBoxMember').options[document
				.getElementById('dayBoxMember').selectedIndex].value;
		var month = document.getElementById('monthBoxMember').options[document
				.getElementById('monthBoxMember').selectedIndex].value;
		var year = document.getElementById('yearBoxMember').options[document
				.getElementById('yearBoxMember').selectedIndex].value;
		var useDate = document.getElementById('whichDateMember').options[document
				.getElementById('whichDateMember').selectedIndex].value;
		var sort = document.getElementById('sortMember').options[document
		        .getElementById('sortMember').selectedIndex].value;
		var isInteger = /^\d*$/;
		var isEMail = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/;
		if(fullName == "" && userName == "" && eMail == "" && numberOfIdeas == "" && numberOfComments == "" && useDate=="Exclude Date"){
			alert("Please enter search keyword(s) or use the search by date feature");
			return;
		}
		if(!validateCanBeEmptyMemberFullName() || !validateCanBeEmptyMemberUserName() || !validateCanBeEmptyMemberEMail() || 
				!validateIsNumberMemberIdeas() || !validateIsNumberMemberComments()){
				return;
			}
		document.getElementById("exportDiv").style.visibility = "hidden";
		document.getElementById("exportDiv").innerHTML = "";
		document.getElementById("exportDiv").innerHTML += "<input name=\"export\" id=\"export\" value=\"\" type=\"text\" />";
		$
				.getJSON(
						'@{AdvancedSearchController.advancedSearchMember()}',
						{
							'fullName' : fullName,
							'userName' : userName,
							'eMail' : eMail,
							'day' : day,
							'month' : month,
							'year' : year,
							'useDate' : useDate,
							'numberOfIdeas' : numberOfIdeas,
							'numberOfComments' : numberOfComments,
							'sort' : sort
						},
						function(data) {
							var resultsTitles = {};
							var resultsIds = {};
							var members = "";
							var membersCSV = "";
							if (data.titles == "No Results Found") {
								alert("No Matching Results Found" + "\n" + "Please Note That Search Results Are Case Sensitive");
								return;
							} else {
								resultsTitles = data.titles.split("&");
								resultsIds = data.ids.split("&");

								for ( var i = 1; i < resultsTitles.length; i = i + 1) {
									if(data.user == resultsTitles[i]){
										members += "<p><a href='/UserProfile/SelfUserProfile'>"
											+ resultsTitles[i] + "</a></p>";
									}else{
									members += "<p><a href='/UserProfile/OtherUserProfile?userId="
											+ resultsIds[i]
											+ "'>"
											+ resultsTitles[i] + "</a></p>";
									membersCSV += resultsTitles[i] + ",";
											}
								}
								document.getElementById("resultsDiv").style.visibility = "hidden";
								document.getElementById("resultsDiv").innerHTML = "";
								document.getElementById("resultsDiv").innerHTML += members;
								document.getElementById("export").value = "";
								document.getElementById("export").value += membersCSV;
								showThickBox();
							}

						});
	}
	 function showThickBox(){
         var newURL = "#TB_inline?height=300&width=500&inlineId=resultsDiv";
         tb_show("Search Results: <a href='#' onclick='exportResults()'>Export Results To CSV Format And Send To My E-Mail</a>", newURL);
     }
	 function communityCounter() {
			$
					.getJSON(
							'@{Application.communityCounter()}',
							{},
							function(data) {

								//alert(data.Counter);
								document.getElementById("Counter").innerHTML = "Community Counter : "
										+ data.Counter;

							})
		}
	 function typeOfMe() {
			$.getJSON ('@{Application.typeOfMe()}',{},
					function (data){
					document.getElementById("Type").innerHTML = " , Your Type :" + data.type;
			})
			}
	 function sendEntRequest(entId) {
			
			
			$.getJSON('@{TopicIdeaController.requestToJoinEntityAdv()}', {'entityId':entId}, function(data) {
				
				alert(data.result);
			});
		}

		function sendOrgRequest(orgnum) {
			
			
			$.getJSON('@{TopicIdeaController.requestToJoinOrganizationAdv()}', {'organizationName':shorgTitles[orgnum]}, function(data) {
				
				alert(data.result);
			});
		}
</script>



</head>

<body>
		<div id="container">
		<div id="header">
			<h1>
				<a href="/">MEGASOFT</a>
			</h1>
			<h2>Software ninjas</h2>
          

			<!-- <a href=""
				style="background: #333 url('../../public/images/light.png') center center repeat-x; color: white; margin: 5px; padding: 5px 15px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: bold; float: right;">Sign
				Up</a> <a href=""
				style="background: #B22222 url('../../public/images/light.png') center center repeat-x; color: white; margin: 5px; padding: 5px 15px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: bold; float: right;">Sign
				In</a> -->
			<div id="whoIsLoggedIn">

                        </div>

			<form>
				<input type="button" value="Back to Previous Page"
					onClick="javascript: history.go(-1)"
					style="background: #B22222 url('../../public/images/light.png') center center repeat-x; color: white; margin: 5px; padding: 5px 15px; text-decoration: none; border-radius: 4px; font-size: 14px; font-weight: bold; float: right;">
			</form>
			<div class="clear"></div>
		</div>
		<div id="nav">
			<ul>

                            
				<li><a href="@{UserProfile.SelfUserProfile()}">Home</a></li>
				<li><a href="@{BrowseController.BrowseOrganizations()}">organizations</a>
				</li>
				<li><a href="@{BrowseController.BrowseEntities()}">Entities</a>
				</li>
				<li><a href="@{BrowseController.BrowseTopics()}">Topics</a></li>
				<li><a href="@{BrowseController.BrowseIdeasPage()}">ideas</a></li>
				<li><a href="@{BrowseController.BrowseAll()}">Browse all</a>
				</li>
				
				<li><a href="#" onclick="javascript:reshffule()"
					title="shuffle">goCrazy</a></li>
				<li><a href="@{AdvancedSearchController.AdvancedSearchView()}">Advanced
						Search</a>
				</li>
				<!--<li><a href="#">About</a>-->
				<li><a href="@{Secure.logout()}" title="logout">Logout</a>
				
			</ul>
		</div>


	
		<br />
		<div id = "Type" style ="float: right;">type </div>
		<div id="Counter" style="float: right;">counter</div>
		
		<div id="createOrgDiv"></div>

		<div id="createEntityDiv"></div>

		<div id="createSubEntityDiv"></div>

		<div id="deleteEntityDiv"></div>

		<div id="orgRequestDiv"></div>

		<div id="devRequestDiv"></div>

		<div id="devCanDivInEnt"></div>

		<div id="devCanDivInOrg"></div>
                



		
	</div>
	<p class="intro"></p>

	<h2>Advanced Search</h2>

	<noscript>
		<p>Unfortunately your browser does not hava JavaScript
			capabilities which are required to exploit full functionality of our
			site. This could be the result of two possible scenarios:</p>
		<ol>
			<li>You are using an old web browser, in which case you should
				upgrade it to a newer version. We recommend the latest version of <a
				href="http://www.getfirefox.com">Firefox</a>.</li>
			<li>You have disabled JavaScript in you browser, in which case
				you will have to enable it to properly use our site. <a
				href="http://www.google.com/support/bin/answer.py?answer=23852">Information
					on enabling JavaScript</a>.</li>
		</ol>
	</noscript>

	<div class="slider-wrap">
		<div id="slider1" class="csw">
			<div class="panelContainer">

				<div class="panel" title="Idea">
					<div class="wrapper">
						<h3>Idea</h3>
						<p>Advanced Search: Idea</p>
						<p>
							<label for="title">Title:</label> <input name="titleIdea"
								id="titleIdea" value="" type="text" onkeyup="validateCanBeEmptyIdeaTitle()"/> <label id = "validateTitleIdea" style="color:red;"></label>
						</p>
						<p>
							<label for="description">Description:</label> <input
								name="descriptionIdea" id="descriptionIdea" value="" type="text" onkeyup="validateCanBeEmptyIdeaDescription()" />
									<label id = "validateDescriptionIdea" style="color:red;"></label>
						</p>
						<p>
							<label for="">Creator:</label> <input name="creatorIdea"
						id="creatorIdea" value="" type="text" onkeyup="validateCanBeEmptyIdeaCreator()"  /><label id = "validateCreatorIdea" style="color:red;"></label>
						</p>
						<p>
							<label for="organizationIdea">Organization:</label> <input
								name="organizationIdea" id="organizationIdea" value="" type="text" onkeyup="validateCanBeEmptyIdeaOrganization()" />
								<label id = "validateOrganizationIdea" style="color:red;"></label>
								
						</p>
						<p>
							<label for="">Number Of Views >= </label> <input
								name="numberOfViewsIdea" id="numberOfViewsIdea" value=""
								type="text" onkeyup="validateIsNumberIdeaViews()"/><label id = "validateViewsIdea" style="color:red;"></label>
						</p>
						<p>
							<label for="">Status</label> <select name="statusIdea"
								id="statusIdea">
								<option value="otherwise" selected="selected">Not Promoted for Execution</option>
								<option value="Promoted for Execution">Promoted
									for Execution</option>
							</select>
						</p>
						<p>
							<label for="tags">Tag:</label> <input name="tagsIdea"
								id="tagsIdea" value="" type="text" onkeyup="validateCanBeEmptyIdeaTag()"/>&nbsp;&nbsp;<label id = "validateTagIdea" style="color:red;"></label>
						</p>


						<p>
							<label for="date">Date of Drafting/Posting:</label>
						</p>
						<p>
							<select name="dayBoxIdea" id="dayBoxIdea">
								<option value="1" selected="selected">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
								<option value="13">13</option>
								<option value="14">14</option>
								<option value="15">15</option>
								<option value="16">16</option>
								<option value="17">17</option>
								<option value="18">18</option>
								<option value="19">19</option>
								<option value="20">20</option>
								<option value="21">21</option>
								<option value="22">22</option>
								<option value="23">23</option>
								<option value="24">24</option>
								<option value="25">25</option>
								<option value="26">26</option>
								<option value="27">27</option>
								<option value="28">28</option>
								<option value="29">29</option>
								<option value="30">30</option>
								<option value="31">31</option>
							</select> <select name="monthBoxIdea" id="monthBoxIdea">
								<option value="1" selected="selected">January</option>
								<option value="2">February</option>
								<option value="3">March</option>
								<option value="4">April</option>
								<option value="5">May</option>
								<option value="6">June</option>
								<option value="7">July</option>
								<option value="8">August</option>
								<option value="9">September</option>
								<option value="10">October</option>
								<option value="11">November</option>
								<option value="12">December</option>
							</select> <select name="yearBoxIdea" id="yearBoxIdea">
								<option value="2000" selected="selected">2000</option>
								<option value="2001">2001</option>
								<option value="2002">2002</option>
								<option value="2003">2003</option>
								<option value="2004">2004</option>
								<option value="2005">2005</option>
								<option value="2006">2006</option>
								<option value="2007">2007</option>
								<option value="2008">2008</option>
								<option value="2009">2009</option>
								<option value="2010">2010</option>
								<option value="2011">2011</option>
							</select> &nbsp;&nbsp;&nbsp;&nbsp; <select name="whichDateIdea"
								id="whichDateIdea">
								<option value="Exclude Date" selected="selected">Exclude
									Date</option>
								<option value="Include Date">Include Date</option>
								<option value="After this date">After this date</option>
								<option value="Before this date">Before this date</option>
							</select>
						</p>
						<p>
						<select name="sortIdea" id="sortIdea">
								<option value="noSort" selected="selected">Do Not Sort Results</option>
								<option value="sortByViewsAsc">Sort By Views Ascendingly</option>
								<option value="sortByViewsDsc">Sort By Views Descendingly</option>
								<option value="sortByVotesAsc">Sort By Votes Ascendingly</option>
								<option value="sortByVotesDsc">Sort By Votes Descendingly</option>
								<!-- <option value="Before this date">Before this date</option>-->
							</select>
						
						
						
						</p>
						<p>
							<a href=# onclick="searchIdea()">Search</a> <a href="#5"
								class="cross-link" title="Go to Member">&#171; Previous</a> | <a
								href="#2" class="cross-link" title="Go to Topic">Next &#187;</a>
						</p>


					</div>
				</div>
				<div class="panel" title="Topic">
					<div class="wrapper">
						<h3>Topic</h3>

						<legend></legend>
						<p>Advanced Search: Topic</p>
						<p>
							<label for="title">Title:</label> <input name="title" id="title"
								value="" type="text" onkeyup="validateCanBeEmptyTopicTitle()"/>
								<label id = "validateTitleTopic" style="color:red;"></label>
						</p>
						<p>
							<label for="description">Description:</label> <input
								name="description" id="description" value="" type="text" onkeyup="validateCanBeEmptyTopicDescription()" />
								<label id = "validateDescriptionTopic" style="color:red;"></label>
						</p>
						<p>
							<label for="">Creator:</label> <input name="creator" id="creator"
								value="" type="text" onkeyup="validateCanBeEmptyTopicCreator()"/>
								<label id = "validateCreatorTopic" style="color:red;"></label>
						</p>
						<p>
							<label for="organizationTopic">Organization:</label> <input
								name="organizationTopic" id="organizationTopic" value="" type="text" onkeyup="validateCanBeEmptyTopicOrganization()"/>
								<label id = "validateOrganizationTopic" style="color:red;"></label>
						</p>
						<p>
							<label for="">Number Of Views >= </label> <input
								name="numberOfViews" id="numberOfViews" value="" type="text" onkeyup="validateIsNumberTopicViews()"/>
								<label id = "validateViewsTopic" style="color:red;"></label>
						</p>
						<p>
							<label for="">Status</label> <select name="status" id="status">
							<option value="otherwise" selected="selected">Not Promoted for Execution</option>
								<option value="Promoted for Execution">Promoted
									for Execution</option>
							</select>
						</p>
						<p>
							<label for="tags">Tag:</label> <input name="tags" id="tags"
								value="" type="text" onkeyup="validateCanBeEmptyTopicTag()"/>&nbsp;&nbsp;
								<label id = "validateTagTopic" style="color:red;"></label>
						</p>


						<p>
							<label for="date">Date Of Drafting/Posting:</label>
						</p>
						<p>
							<select name="dayBox" id="dayBox">
								<option value="1" selected="selected">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
								<option value="13">13</option>
								<option value="14">14</option>
								<option value="15">15</option>
								<option value="16">16</option>
								<option value="17">17</option>
								<option value="18">18</option>
								<option value="19">19</option>
								<option value="20">20</option>
								<option value="21">21</option>
								<option value="22">22</option>
								<option value="23">23</option>
								<option value="24">24</option>
								<option value="25">25</option>
								<option value="26">26</option>
								<option value="27">27</option>
								<option value="28">28</option>
								<option value="29">29</option>
								<option value="30">30</option>
								<option value="31">31</option>
							</select> <select name="monthBox" id="monthBox">
								<option value="1" selected="selected">January</option>
								<option value="2">February</option>
								<option value="3">March</option>
								<option value="4">April</option>
								<option value="5">May</option>
								<option value="6">June</option>
								<option value="7">July</option>
								<option value="8">August</option>
								<option value="9">September</option>
								<option value="10">October</option>
								<option value="11">November</option>
								<option value="12">December</option>
							</select> <select name="yearBox" id="yearBox">
								<option value="2000" selected="selected">2000</option>
								<option value="2001">2001</option>
								<option value="2002">2002</option>
								<option value="2003">2003</option>
								<option value="2004">2004</option>
								<option value="2005">2005</option>
								<option value="2006">2006</option>
								<option value="2007">2007</option>
								<option value="2008">2008</option>
								<option value="2009">2009</option>
								<option value="2010">2010</option>
								<option value="2011">2011</option>
							</select> &nbsp;&nbsp;&nbsp;&nbsp; <select name="whichDate" id="whichDate">
								<option value="Exclude Date" selected="selected">Exclude
									Date</option>
								<option value="Include Date">Include Date</option>
								<option value="After this date">After this date</option>
								<option value="Before this date">Before this date</option>
							</select>
						</p>
						<p>
						<select name="sortTopic" id="sortTopic">
								<option value="noSort" selected="selected">Do Not Sort Results</option>
								<option value="sortByViewsAsc">Sort By Views Ascendingly</option>
								<option value="sortByViewsDsc">Sort By Views Descendingly</option>

								<!-- <option value="Before this date">Before this date</option>-->
							</select>
						</p>
						<p>
							<a href=# onclick="searchTopic()">Search</a> <a href="#1"
								class="cross-link" title="Go to Idea">&#171; Previous</a> | <a
								href="#3" class="cross-link" title="Go to Tag">Next &#187;</a>
						</p>



					</div>
				</div>
				<div class="panel" title="Tag">
					<div class="wrapper">
						<h3>Tag</h3>


						<p>Advanced Search: Tag</p>
						<p>
							<label for="name">Name:</label> <input name="nameTag"
								id="nameTag" value="" type="text" onkeyup="validateCanBeEmptyTagName()"/>
								<label id = "validateTagName" style="color:red;"></label>
						</p>

						<p>
							<label for="NumberOfRelated">Number of Related Items >= </label> <input
								name="relatedTag" id="relatedTag" value="" type="text" onkeyup="validateIsNumberTagRelatedItems()"/>
								<label id = "validateTagRelated" style="color:red;"></label>
						</p>
						<p>
							<label for="date">Date of Creation:</label>
						</p>
						<p>
							<select name="dayBoxTag" id="dayBoxTag">
								<option value="1" SELECTED>1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
								<option value="13">13</option>
								<option value="14">14</option>
								<option value="15">15</option>
								<option value="16">16</option>
								<option value="17">17</option>
								<option value="18">18</option>
								<option value="19">19</option>
								<option value="20">20</option>
								<option value="21">21</option>
								<option value="22">22</option>
								<option value="23">23</option>
								<option value="24">24</option>
								<option value="25">25</option>
								<option value="26">26</option>
								<option value="27">27</option>
								<option value="28">28</option>
								<option value="29">29</option>
								<option value="30">30</option>
								<option value="31">31</option>
							</select> <select name="monthBoxTag" id="monthBoxTag">
								<option value="1" SELECTED>January</option>
								<option value="2">February</option>
								<option value="3">March</option>
								<option value="4">April</option>
								<option value="5">May</option>
								<option value="6">June</option>
								<option value="7">July</option>
								<option value="8">August</option>
								<option value="9">September</option>
								<option value="10">October</option>
								<option value="11">November</option>
								<option value="12">December</option>
							</select> <select name="yearBoxTag" id="yearBoxTag">
								<option value="2000" SELECTED>2000</option>
								<option value="2001">2001</option>
								<option value="2002">2002</option>
								<option value="2003">2003</option>
								<option value="2004">2004</option>
								<option value="2005">2005</option>
								<option value="2006">2006</option>
								<option value="2007">2007</option>
								<option value="2008">2008</option>
								<option value="2009">2009</option>
								<option value="2010">2010</option>
								<option value="2011">2011</option>
							</select> &nbsp;&nbsp;&nbsp;&nbsp; <select name="whichDateTag"
								id="whichDateTag">
								<option value="Exclude Date" SELECTED>Exclude Date</option>
								<option value="Include Date">Include Date</option>
								<option value="After this date">After this date</option>
								<option value="Before this date">Before this date</option>
							</select>
						</p>
						<p>
						<select name="sortTag" id="sortTag">
								<option value="noSort" selected="selected">Do Not Sort Results</option>
								<option value="sortByRelatedAsc">Sort By Number Of Related Items Ascendingly</option>
								<option value="sortByRelatedDsc">Sort By Number Of Related Items Descendingly</option>
								<!-- <option value="Before this date">Before this date</option>-->
							</select>
						
						
						
						</p>
						<p>
							<a href=# onclick="searchTag()">Search</a> <a href="#2"
								class="cross-link" title="Go to Topic">&#171; Previous</a> | <a
								href="#4" class="cross-link" title="Go to Entity">Next
								&#187;</a>
						</p>
						

					</div>
				</div>
				<div class="panel" title="Entity">
					<div class="wrapper">
						<h3>Entity</h3>

						<legend></legend>
						<p>Advanced Search: Entity</p>
						<p>
							<label for="nameEntity">Name:</label> <input name="nameEntity"
								id="nameEntity" value="" type="text" onkeyup="validateCanBeEmptyEntityName()"/>
								<label id = "validateEntityName" style="color:red;"></label>
						</p>
						<p>
							<label for="organizationOfEntity">Organization:</label> <input
								name="organizationOfEntity" id="organizationOfEntity" value=""
								type="text" onkeyup="validateCanBeEmptyEntityOrganization()"/>
								<label id = "validateEntityOrganization" style="color:red;"></label>
						</p>
						<p>
							<label for="numberOfViewsEntity">Number Of Views >= </label> <input
								name="numberOfViewsEntity" id="numberOfViewsEntity" value=""
								type="text" onkeyup="validateIsNumberEntityViews()"/>
								<label id = "validateEntityViews" style="color:red;"></label>
						</p>
						<p>
							<label for="numberOfMembersEntity">Number Of Members >= </label> <input
								name="numberOfMembersEntity" id="numberOfMembersEntity" value=""
								type="text" onkeyup="validateIsNumberEntityMembers()"/>
								<label id = "validateEntityMembers" style="color:red;"></label>
						</p>
						<p>
							<label for="">Number Of Topics >= </label> <input
								name="numberOfTopicsEntity" id="numberOfTopicsEntity" value=""
								type="text" onkeyup="validateIsNumberEntityTopics()"/>
								<label id = "validateEntityTopics" style="color:red;"></label>
						</p>


						<p>
							<label for="date">Date of Creation:</label>
						</p>
						<p>
							<select name="dayBoxEntity" id="dayBoxEntity">
								<option value="1" selected="selected">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
								<option value="13">13</option>
								<option value="14">14</option>
								<option value="15">15</option>
								<option value="16">16</option>
								<option value="17">17</option>
								<option value="18">18</option>
								<option value="19">19</option>
								<option value="20">20</option>
								<option value="21">21</option>
								<option value="22">22</option>
								<option value="23">23</option>
								<option value="24">24</option>
								<option value="25">25</option>
								<option value="26">26</option>
								<option value="27">27</option>
								<option value="28">28</option>
								<option value="29">29</option>
								<option value="30">30</option>
								<option value="31">31</option>
							</select> <select name="monthBoxEntity" id="monthBoxEntity">
								<option value="1" selected="selected">January</option>
								<option value="2">February</option>
								<option value="3">March</option>
								<option value="4">April</option>
								<option value="5">May</option>
								<option value="6">June</option>
								<option value="7">July</option>
								<option value="8">August</option>
								<option value="9">September</option>
								<option value="10">October</option>
								<option value="11">November</option>
								<option value="12">December</option>
							</select> <select name="yearBoxEntity" id="yearBoxEntity">
								<option value="2000" selected="selected">2000</option>
								<option value="2001">2001</option>
								<option value="2002">2002</option>
								<option value="2003">2003</option>
								<option value="2004">2004</option>
								<option value="2005">2005</option>
								<option value="2006">2006</option>
								<option value="2007">2007</option>
								<option value="2008">2008</option>
								<option value="2009">2009</option>
								<option value="2010">2010</option>
								<option value="2011">2011</option>
							</select> &nbsp;&nbsp;&nbsp;&nbsp; <select name="whichDateEntity"
								id="whichDateEntity">
								<option value="Exclude Date" selected="selected">Exclude
									Date</option>
								<option value="Include Date">Include Date</option>
								<option value="After this date">After this date</option>
								<option value="Before this date">Before this date</option>
							</select>
						</p>
						<p>
						<select name="sortEntity" id="sortEntity">
								<option value="noSort" selected="selected">Do Not Sort Results</option>
								<option value="sortByViewsAsc">Sort By Views Ascendingly</option>
								<option value="sortByViewsDsc">Sort By Views Descendingly</option>
							</select>
						</p>
						<p>
							<a href=# onclick="searchEntity()">Search</a> <a href="#3"
								class="cross-link" title="Go to Tag">&#171; Previous</a> | <a
								href="#5" class="cross-link" title="Go to Organization">Next
								&#187;</a>
						</p>

					</div>
				</div>
				<div class="panel" title="Organization">
					<div class="wrapper">
						<h3>Organization</h3>

						<legend></legend>
						<p>Advanced Search: Organization</p>
						<p>
							<label for="nameOrganization">Name:</label> <input
								name="nameOrganization" id="nameOrganization" value=""
								type="text" onkeyup="validateCanBeEmptyOrganizationName()"/>
								<label id = "validateOrganizationName" style="color:red;"></label>
						</p>

						<p>
							<label for="numberOfViewsOrganization">Number Of Views >= </label> <input
								name="numberOfViewsOrganization" id="numberOfViewsOrganization"
								value="" type="text" onkeyup="validateIsNumberOrganizationViews()"/>
								<label id = "validateOrganizationViews" style="color:red;"></label>
						</p>
						<p>
							<label for="numberOfMembersOrganization">Number Of
								Members >= </label> <input name="numberOfMembersOrganization"
								id="numberOfMembersOrganization" value="" type="text" onkeyup="validateIsNumberOrganizationMembers()"/>
								<label id = "validateOrganizationMembers" style="color:red;"></label>
						</p>
						<p>
							<label for="">Number Of Topics >= </label> <input
								name="numberOfTopicsOrganization"
								id="numberOfTopicsOrganization" value="" type="text" onkeyup="validateIsNumberOrganizationTopics()"/>
								<label id = "validateOrganizationTopics" style="color:red;"></label>
						</p>


						<p>
							<label for="date">Date of Creation:</label>
						</p>
						<p>
							<select name="dayBoxOrganization" id="dayBoxOrganization">
								<option value="1" selected="selected">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
								<option value="13">13</option>
								<option value="14">14</option>
								<option value="15">15</option>
								<option value="16">16</option>
								<option value="17">17</option>
								<option value="18">18</option>
								<option value="19">19</option>
								<option value="20">20</option>
								<option value="21">21</option>
								<option value="22">22</option>
								<option value="23">23</option>
								<option value="24">24</option>
								<option value="25">25</option>
								<option value="26">26</option>
								<option value="27">27</option>
								<option value="28">28</option>
								<option value="29">29</option>
								<option value="30">30</option>
								<option value="31">31</option>
							</select> <select name="monthBoxOrganization" id="monthBoxOrganization">
								<option value="1" selected="selected">January</option>
								<option value="2">February</option>
								<option value="3">March</option>
								<option value="4">April</option>
								<option value="5">May</option>
								<option value="6">June</option>
								<option value="7">July</option>
								<option value="8">August</option>
								<option value="9">September</option>
								<option value="10">October</option>
								<option value="11">November</option>
								<option value="12">December</option>
							</select> <select name="yearBoxOrganization" id="yearBoxOrganization">
								<option value="2000" selected="selected">2000</option>
								<option value="2001">2001</option>
								<option value="2002">2002</option>
								<option value="2003">2003</option>
								<option value="2004">2004</option>
								<option value="2005">2005</option>
								<option value="2006">2006</option>
								<option value="2007">2007</option>
								<option value="2008">2008</option>
								<option value="2009">2009</option>
								<option value="2010">2010</option>
								<option value="2011">2011</option>
							</select> &nbsp;&nbsp;&nbsp;&nbsp; <select name="whichDateOrganization"
								id="whichDateOrganization">
								<option value="Exclude Date" selected="selected">Exclude
									Date</option>
								<option value="Include Date">Include Date</option>
								<option value="After this date">After this date</option>
								<option value="Before this date">Before this date</option>
							</select>
						</p>
						<p>
						<select name="sortOrganization" id="sortOrganization">
								<option value="noSort" selected="selected">Do Not Sort Results</option>
								<option value="sortByViewsAsc">Sort By Views Ascendingly</option>
								<option value="sortByViewsDsc">Sort By Views Descendingly</option>
							</select>
						</p>
						<p>
							<a href="#" onclick="searchOrganization()">Search</a> <a href="#4"
								class="cross-link" title="Go to Entity">&#171; Previous</a> | <a
								href="#6" class="cross-link" title="Go to Member">Next
								&#187;</a>
						</p>


					</div>
				</div>
				<div class="panel" title="Member">
					<div class="wrapper">
						<h3>Member</h3>

						<legend></legend>
						<p>Advanced Search: Member</p>
						<p>
							<label for="fullNameMember">Full Name:</label> <input
								name="fullNameMember" id="fullNameMember" value="" type="text" onkeyup="validateCanBeEmptyMemberFullName()"/>
								<label id = "validateMemberFullName" style="color:red;"></label>
						</p>
						<p>
							<label for="userNameMember">Username:</label> <input
								name="userNameMember" id="userNameMember" value="" type="text" onkeyup="validateCanBeEmptyMemberUserName()" />
								<label id = "validateMemberUserName" style="color:red;"></label>
						</p>

						<p>
							<label for="eMail">E-Mail:</label> <input name="eMail" id="eMail"
								value="" type="text" onkeyup="validateCanBeEmptyMemberEMail()"/>
								<label id = "validateMemberEMail" style="color:red;"></label>
						</p>
						<p>
							<label for="">Number Of Ideas Posted >= </label> <input
								name="numberOfIdeasMember" id="numberOfIdeasMember" value=""
								type="text" onkeyup="validateIsNumberMemberIdeas()"/>
								<label id = "validateMembersIdeas" style="color:red;"></label>
						</p>
						<p>
							<label for="">Number Of Comments Posted >= </label> <input
								name="numberOfCommentsMember" id="numberOfCommentsMember"
								value="" type="text" onkeyup="validateIsNumberMemberComments()" />
								<label id = "validateMembersComments" style="color:red;"></label>
						</p>

						<p>
							<label for="date">Date of Birth:</label>
						</p>
						<p>
							<select name="dayBoxMember" id="dayBoxMember">
								<option value="1" selected="selected">1</option>
								<option value="2">2</option>
								<option value="3">3</option>
								<option value="4">4</option>
								<option value="5">5</option>
								<option value="6">6</option>
								<option value="7">7</option>
								<option value="8">8</option>
								<option value="9">9</option>
								<option value="10">10</option>
								<option value="11">11</option>
								<option value="12">12</option>
								<option value="13">13</option>
								<option value="14">14</option>
								<option value="15">15</option>
								<option value="16">16</option>
								<option value="17">17</option>
								<option value="18">18</option>
								<option value="19">19</option>
								<option value="20">20</option>
								<option value="21">21</option>
								<option value="22">22</option>
								<option value="23">23</option>
								<option value="24">24</option>
								<option value="25">25</option>
								<option value="26">26</option>
								<option value="27">27</option>
								<option value="28">28</option>
								<option value="29">29</option>
								<option value="30">30</option>
								<option value="31">31</option>
							</select> <select name="monthBoxMember" id="monthBoxMember">
								<option value="1" selected="selected">January</option>
								<option value="2">February</option>
								<option value="3">March</option>
								<option value="4">April</option>
								<option value="5">May</option>
								<option value="6">June</option>
								<option value="7">July</option>
								<option value="8">August</option>
								<option value="9">September</option>
								<option value="10">October</option>
								<option value="11">November</option>
								<option value="12">December</option>
							</select> <select name="yearBoxMember" id="yearBoxMember">
								<option value="1940" selected="selected">1940</option>
								<option value="1941">1941</option>
								<option value="1942">1942</option>
								<option value="1943">1943</option>
								<option value="1944">1944</option>
								<option value="1945">1945</option>
								<option value="1946">1946</option>
								<option value="1947">1947</option>
								<option value="1948">1948</option>
								<option value="1949">1949</option>
								<option value="1950">1950</option>
								<option value="1951">1951</option>
								<option value="1952">1952</option>
								<option value="1953">1953</option>
								<option value="1954">1954</option>
								<option value="1955">1955</option>
								<option value="1956">1956</option>
								<option value="1957">1957</option>
								<option value="1958">1958</option>
								<option value="1959">1959</option>
								<option value="1960">1960</option>
								<option value="1961">1961</option>
								<option value="1962">1962</option>
								<option value="1963">1963</option>
								<option value="1964">1964</option>
								<option value="1965">1965</option>
								<option value="1966">1966</option>
								<option value="1967">1967</option>
								<option value="1968">1968</option>
								<option value="1969">1969</option>
								<option value="1970">1970</option>
								<option value="1971">1971</option>
								<option value="1972">1972</option>
								<option value="1973">1973</option>
								<option value="1974">1974</option>
								<option value="1975">1975</option>
								<option value="1976">1976</option>
								<option value="1977">1977</option>
								<option value="1978">1978</option>
								<option value="1979">1979</option>
								<option value="1980">1980</option>
								<option value="1981">1981</option>
								<option value="1982">1982</option>
								<option value="1983">1983</option>
								<option value="1984">1984</option>
								<option value="1985">1985</option>
								<option value="1986">1986</option>
								<option value="1987">1987</option>
								<option value="1988">1988</option>
								<option value="1989">1989</option>
								<option value="1990">1990</option>
								<option value="1991">1991</option>
								<option value="1992">1992</option>
								<option value="1993">1993</option>
								<option value="1994">1994</option>
								<option value="1995">1995</option>
								<option value="1996">1996</option>
								<option value="1997">1997</option>
								<option value="1998">1998</option>
								<option value="1999">1999</option>
								<option value="2000">2000</option>
								<option value="2001">2001</option>
								<option value="2002">2002</option>
								<option value="2003">2003</option>
								<option value="2004">2004</option>
								<option value="2005">2005</option>
								<option value="2006">2006</option>
								<option value="2007">2007</option>
								<option value="2008">2008</option>
								<option value="2009">2009</option>
								<option value="2010">2010</option>
								<option value="2011">2011</option>
							</select> &nbsp;&nbsp;&nbsp;&nbsp; <select name="whichDateMember"
								id="whichDateMember">
								<option value="Exclude Date" selected="selected">Exclude
									Date</option>
								<option value="Include Date">Include Date</option>
								<!--  <option value="After this date">After this date</option>-->
								<!--<option value="Before this date">Before this date</option>-->
							</select>
						</p>
						<p>
						<select name="sortMember" id="sortMember">
								<option value="noSort" selected="selected">Do Not Sort Results</option>
								<option value="sortByPostsAsc">Sort By Number Of Posts Ascendingly</option>
								<option value="sortByPostsDsc">Sort By Number Of Posts Descendingly</option>
								<option value="sortByCommentsAsc">Sort By Number Of Comments Ascendingly</option>
								<option value="sortByCommentsDsc">Sort By Number Of Comments Descendingly</option>
							</select>
						</p>
						<p>
							<a href=# onclick="searchMember()">Search</a>
						</p>


						<p>
							<a href="#5" class="cross-link" title="Go to Organization">&#171;
								Previous</a> | <a href="#1" class="cross-link" title="Go to Idea">Next
								&#187;</a>
						</p>
					</div>
				</div>

			</div>
			<!-- .panelContainer -->
		</div>
		<!-- #slider1 -->
	</div>
	<!-- .slider-wrap -->

	<legend></legend>


	<p id="cross-links">
		Same-page cross-link controls:<br /> <a href="#1" class="cross-link">Idea</a>
		| <a href="#2" class="cross-link">Topic</a> | <a href="#3"
			class="cross-link">Tag</a> | <a href="#4" class="cross-link">Entity</a>
		| <a href="#5" class="cross-link">Organization</a> | <a href="#6"
			class="cross-link">Member</a>
	</p>
	<div id="resultsDiv"></div>
	<div id="exportDiv"></div>



</body>

</html>